package com.bailugansan.service;

import com.bailugansan.dao.UserDao;
import com.bailugansan.pojo.Role;
import com.bailugansan.pojo.User;

import java.util.List;

/**
 * @author BailuGansan
 */
public interface UserService {
    User login(String userCode, String password);

    boolean pwdModify(int id, String newPassword);

    int getUserCount(String userName, int userRole);

    List<User> getUserList(String userName, int userRole, int currentPage, int pageSize);

    List<Role> getRoleList();
}
